package com.lc.luzhengtang.conn;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.VerificationCodeBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.GET_VERIFICATIONCODE)
public class ConnVerificationCode2 extends BaseAsyPost<VerificationCodeBean> {

    public String mobile, type;

    public String member_id;

    public ConnVerificationCode2(String mobile, String type, String member_id, AsyCallBack<VerificationCodeBean> asyCallBack) {
        super(asyCallBack);
        this.mobile = mobile;
        this.type = type;
        this.member_id = member_id;
    }

    @Override
    protected VerificationCodeBean parser(JSONObject object) throws Exception {
        Gson gson = new Gson();
        VerificationCodeBean verificationCodeBean = new VerificationCodeBean();

        verificationCodeBean = gson.fromJson(object.toString(), VerificationCodeBean.class);
        return verificationCodeBean;


    }
}



